package com.jd.controller;

import com.common.model.Result;
import com.jd.model.ShelvesItemCondition;
import com.jd.model.VCShelvesItemVO;
import com.jd.service.JDShelvesItemService;
import com.mrobuy.jdvc.entity.VCShelvesItem;
import com.platform.model.BaseEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *  JD上架商品SKU管理
 */
@RestController
public class JDShelvesItemController {

	private static Logger LOG = LoggerFactory.getLogger(JDShelvesItemController.class);

	@Autowired
	private JDShelvesItemService jdShelvesItemService;

	@RequestMapping("/common/shelvesitems")
	public Result<VCShelvesItemVO> applies(@ModelAttribute ShelvesItemCondition condition) {
		return  jdShelvesItemService.loadItems(condition);
	}

}
